from CONN import conn
cursor=conn.cursor()#获取游标对象
cursor.execute("UPDATE student SET NAME='张三456' WHERE id=4") #执行sql语句